﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;

namespace Parser
{
    class Program
    {
        static void Main(string[] args)
        {
        Parse p = new Parse();
        Hashtable h1 = p.parsujAtrybut("- Shotguny_6 : Integer[7]");
         Hashtable h2 = p.parsujAtrybut("-# Broken*John : Str()ing");
        Hashtable h3 = p.parsujAtrybut("-        Good_boy       :             Ammmmmmmmount");
        Hashtable h4 = p.parsujMetode("+ Ha_4_u(Parameter_1[88] : Integer, Paramter_2 : String) : void");
        Hashtable h5 = p.parsujMetode("#Miau(Dzwiek[9]:Sound):Sound");
        Diagram.Element d1 = p.konwertujNaModel(h1);
        Diagram.Element d2 = p.konwertujNaModel(h2);
        Diagram.Element d3 = p.konwertujNaModel(h3);
        Diagram.Element d4 = p.konwertujNaModel(h4);
        Diagram.Element d5 = p.konwertujNaModel(h5);
        Console.ReadLine();

        return;
        }
    }
}
